package hn.cch.druid.redis;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Repository;

/**
 * Redis缓存基类
 * @author CCH
 * @version 2018.09.18
 */

@Repository
public class CacheRedis {
    @Autowired
    protected RedisTemplate<String, String> redisTemplate;

    public void del(String key){
        redisTemplate.opsForValue().getOperations().delete(key);
    }
}
